<?php
$base = "http://" . $_SERVER['SERVER_NAME'];
?>
<link href="<?= $base ?>/bootstrap/css/bootstrap.css" rel="stylesheet" />                        
<link href="<?= $base ?>/bootstrap/css/bootstrap-responsive.css" rel="stylesheet"/>
<title>Verify Your Mobile</title>
<div id="view-content">	
    <h3>Verify Your Mobile</h3>
    <div class="row-fluid">
        <?php if ($this->isSuccess) { ?>
            <div class="span6 alert alert-success">
                You mobile is verified successfully.<br>
                Message Sent Successfully.
            </div>
            <?php
        } else {
            ?>

            <div class="span6 well">
                <?php if ($this->isErrorMessage) {
                    ?>        
                    <div class="alert alert-danger">
                        <?= $this->errorMessage ?><br>
                    </div>
                <?php } ?>
                <?= $this->form ?>
                <?php
                if ($this->message != null) {
                    echo "<span class='label label-important'> Message send successfully</span><br>";
                }
                ?>                
                <a href="<?= $this->url(array('mobile' => $this->mobile), 'send-again'); ?>"> Send Verification Code Again</a>
            </div>
        <?php }
        ?>
    </div>
</div>